<!DOCTYPE html>
<html lang="zh-CN">
<head>
    <meta charset="utf-8">
    <title>增加新闻</title>
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1">
    <link href="../../css/bootstrap.min.css" rel="stylesheet">
    <link href="../../css/add.css" rel="stylesheet">
</head>

<body>
<div class="col-sm-9  col-md-10">
    <form class="form-horizontal" method="post" action="/admin/news/postedit">

        <input  type="hidden" name="id" value="<%= data['id'] %>">

        <div class="form-group">
            <label for="type" class="col-sm-2 control-label">类别</label>
            <div class="col-sm-10">

                <input class="form-control" id="type" type="text" name="type" value="<%= data['type_new'] %>" readOnly="true">

            </div>
        </div>

        <div class="form-group">
            <label for="title" class="col-sm-2 control-label">标题</label>
            <div class="col-sm-10">
                <input type="text" class="form-control" id="title" name="title" value="<%= data['title'] %>"
                       placeholder="请输入新闻标题"
                       required="required">
            </div>
        </div>

        <div class="form-group">
            <label for="content" class="col-sm-2 control-label">内容</label>
            <div class="col-sm-10">
                <textarea class="form-control" rows="3" id="content" name="content" placeholder="请输入新闻内容"
                          required="required"><%= data['content'] %></textarea>
            </div>
        </div>

        <div class="form-group">
            <label for="time" class="col-sm-2 control-label">时间</label>
            <div class="col-sm-10">
                <input class="form-control" type="date" id="time" name="time" placeholder="请输入新闻时间"
                       value="<%= data['ctime'] %>" required="required"/>
            </div>
        </div>

        <div class="form-group">
            <div class="col-sm-offset-2 col-sm-10">
                <button type="submit" class="btn btn-success">修改</button>
            </div>
        </div>
    </form>
</div>
</body>
</html>